﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HotelManagement.DTO
{
    class RentDTO
    {
        
        private int rentID;
        private int roomID;
        private string userName;
        private DateTime registerDate;
        private int status;//0 nếu là đã trả phòng,1 là đặt phòng, 2 nếu là đã nhận phòng
        private DateTime checkInDate;
        private string note;
        private int customerID;
        public int CustomerID
        {
            get { return customerID; }
            set { customerID = value; }
        }
        public string Note
        {
            get { return note; }
            set { note = value; }
        }
        public DateTime CheckInDate
        {
            get { return checkInDate; }
            set { checkInDate = value; }
        }
        public int Status
        {
            get { return status; }
            set { status = value; }
        }
        public DateTime RegisterDate
        {
            get { return registerDate; }
            set { registerDate = value; }
        }
        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }
        public int RoomID
        {
            get { return roomID; }
            set { roomID = value; }
        }
        public int RentID
        {
            get { return rentID; }
            set { rentID = value; }
        }
        public RentDTO()
        {
            this.registerDate = DateTime.Now;
            this.status = 0;
        }
        public RentDTO(int pRentID,int pRoomID,string pUserName, DateTime pRegisterDate,DateTime pCheckInDate,int pCustomerID, int pStatus,string pNote)
        {
            this.rentID = pRentID;
            roomID = pRoomID;
            userName = pUserName;
            registerDate = pRegisterDate;
            this.checkInDate = pCheckInDate;
            this.customerID = pCustomerID;
            status = pStatus;
            note = pNote;
        }
    }
}
